Other Enums

The following enums are available globally.

  • A TransportType specifies the mode of transportation used for part of a route.

    See more

    Declaration

    Swift

    public enum TransportType: Int, CustomStringConvertible
  • A ManeuverType specifies the type of maneuver required to complete the route step. You can pair a maneuver type with a ManeuverDirection to choose an appropriate visual or voice prompt to present the user.

    In Swift, you can use pattern matching with a single switch statement on a tuple containing the maneuver type and maneuver direction to avoid a complex series of if-else-if statements or switch statements.

    See more

    Declaration

    Swift

    public enum ManeuverType: Int, CustomStringConvertible
  • A ManeuverDirection clarifies a ManeuverType with directional information. The exact meaning of the maneuver direction for a given step depends on the step’s maneuver type; see the ManeuverType documentation for details.

    See more

    Declaration

    Swift

    public enum ManeuverDirection: Int, CustomStringConvertible